package com.zeta.demo.kt.model.param

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.Size

/**
 * 新增 Kotlin测试
 *
 * @author gcc
 */
@Schema(description = "新增Kotlin测试")
data class DemoKotlinSaveDTO(

    /** 名称 */
    @field:Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotEmpty(message = "名称不能为空")
    @get:Size(max = 32, message = "名称长度不能超过32")
    var name: String? = null,

    /** 编码 */
    @field:Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotEmpty(message = "编码不能为空")
    @get:Size(max = 32, message = "编码长度不能超过32")
    var code: String? = null,

    /** 描述 */
    @field:Schema(description = "描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    var describe: String? = null,

)